<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  
</body>
</html>

<script>
// 向数组尾部 增加元素
var arr = [1, 2, 3];

// 1. arr.push('xxx');
// 2. arr[arr.length] = 'xxx';
// 3. var result = arr.splice(arr.length, 0, 'xxx');
// 4. var result = arr.concat('xxx')

</script>